package com.lc.user.express.httpserver;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;
import org.json.JSONObject;

/**
 * Created by Administrator on 2016/4/19.
 */
@HttpInlet(Net.GET_ZHIFU)
public class GetZhiFu extends ZJDBAsyGet<GetZhiFu.Info> {
    public String userid;
    public String money;


    public GetZhiFu(String userid, String money, AsyCallBack<Info> asyCallBack) {
        super(asyCallBack);
        this.userid = userid;
        this.money = money;
    }

    @Override
    protected Info parser(JSONObject object) {
        if (object.optInt("message") == 1) {
            Info info = new Info();
            info.ordernumber = object.optString("ordernumber");
            return info;
        } else if (object.optInt("message") == 0) {
        }
        return null;
    }

    public class Info {
        public String ordernumber;//order 返回值

    }
}

